﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PassportsModel;

//using Model = PassportsModel;
using PassportServiceLibraryTest.Proxy;


namespace PassportServiceLibraryTest
{
    [TestClass]
    public class PassportServiceTest
    {
        [TestMethod]
        public void TestRequestResponse()
        {
            PassportRequest passportRequest = CreateRequest();

            ApplyServiceClient applyServiceClient = new ApplyServiceClient();

            PassportResponse passportResponse = applyServiceClient.MakePassportRequest(passportRequest);

        }

        private PassportRequest CreateRequest()
        {
            PassportRequest identityRequest = PassportRequest.PassportRequestFactory(eGender.Female, eGender.Female);

            //identityRequest.PersonDetails.BirthDate = DateTime.ParseExact("1950/12/31", "yyyy/MM/dd", System.Globalization.CultureInfo.CurrentCulture);

            ////identityRequest.PersonDetails.Gender = eGender.Female;
            //identityRequest.PersonDetails.FamilyName = "Wilberforce";
            //identityRequest.PersonDetails.GivenNames = "Wilber";

            //identityRequest.PassportType = ePassportType.Adult;
            //identityRequest.PassportTravellerType = ePassportTravellerType.Ordinary;
            return (identityRequest);
            
        }
    }
}
